<template>
	<view class="sysMessage">
		<view class="uni-list">
			<view class="uni-list-cell" v-for="(item,index) in dataList" :keu="index">
				<image src="../../static/images/money_icon.png" mode="scaleToFill"></image>
				<view class="desction">
					{{item.content}}
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				pageNum:1,
				dataList:[]
			}
		},
		onLoad() {
			this.getDataList()
		},
		onReachBottom() {
			this.getDataList()
		},
		onPullDownRefresh() {
			this.pageNum = 1;
			this.dataList = [];
			this.getDataList()
		},
		methods:{
			getDataList(){
				let data = {
					"pageNum": this.pageNum,
					"pageSize": 10,
				}
				this.$http.post('/api/v1.0/message/viewSystemInform',data,res=>{
					this.dataList = this.dataList.concat(res.data.data.list)
					this.pageNum++
				})
			}
		}
	}
</script>

<style lang="scss">
	.sysMessage{
		min-height: 100vh;
		background-color: #f2f2f2;
		padding-top: 40upx;
		box-sizing: border-box;
		.uni-list-cell{
			width: 694upx;
			margin: 0 auto;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			padding: 20upx 40upx;
			font-size: 28upx;
			color: #333;
			background-color: #fff;
			border-radius: 20upx;
			margin-bottom: 20upx;
			box-sizing: border-box;
			image{
				width: 64upx;
				height: 64upx;
				margin-right: 20upx;
			}
		}
	}
</style>
